Skip to content

docs(pos): document Discount.amount read behavior from 2026-10 - #4621

Open
vctrchu wants to merge 1 commit into
2026-10-rcfrom
2026-10-rc_pos_discount_amount_doc_fix
Open

docs(pos): document Discount.amount read behavior from 2026-10#4621
vctrchu wants to merge 1 commit into
2026-10-rcfrom
2026-10-rc_pos_discount_amount_doc_fix

Conversation

@vctrchu

@vctrchu vctrchu commented Aug 14, 2026

Copy link
Copy Markdown
Contributor

What

Adds TSDoc to Discount.amount on the POS cart types documenting the read behavior that ships with API version 2026-10: reading a manual discount from the cart returns the value that was applied (e.g. 10 for 10%), matching writes, so discounts can be echoed through bulkCartUpdate losslessly. Includes the POS app version caveat for older clients.

Why

Part of the fix for shop/issues-retail#33093: before 2026-10, reads return the calculated monetary total while writes take the applied value, so read-modify-write cycles silently corrupt percentage discounts. The behavior change is implemented in Shopify/extensibility#1657 (host, version-gated) and shop/world#997169 (POS emits the raw value).

Reported in https://community.shopify.dev/t/36265 and https://community.shopify.dev/t/36171.

Companion doc correction for the released 2026-07 branch: #4620.

Assisted-By: devx/ebf9cf26-03bb-4c3e-9919-a083a362bb2b
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant